import Vue from 'vue'
import Router from 'vue-router'
import login from '@/pages/login'
import home from '@/pages/home/index'
import place from '@/pages/place'
import equipmentActive from '@/pages/equipmentActive'
import historicalRecord from '@/pages/historicalRecord'
import notice from '@/pages/notice'
import push from '@/pages/push'
import problem from '@/pages/problem'
import telephone from '@/pages/telephone'
import report from '@/pages/report'
import attendance from '@/pages/attendance'
import scanning from '@/component/scanning'
import subordinateUnits from '@/pages/subordinateUnits'
import rescueResources from '@/pages/rescueResources'
import ownerUnit from '@/pages/ownerUnit'
import maintenanceUnit from '@/pages/maintenanceUnit'
import keySites from '@/pages/keySites'
import allBuildings from '@/pages/allBuildings'
import hazardSource from '@/pages/hazardSource'
import addEquipment from '@/pages/add/addEquipment'
import category from '@/pages/category'
import giveAnalarm from '@/pages/giveAnalarm'
import correcting from '@/pages/correcting'
import measure from '@/pages/measure'
import camera from '@/pages/camera'
import choiceNew from '@/pages/choiceNew'
import equipmentDetails from '@/pages/details/equipmentDetails'
import company from '@/pages/details/company'
import ownerUnitDetails from '@/pages/details/ownerUnit'
import maitainordetails from '@/pages/details/maitainordetails'
import sitedetail from '@/pages/details/sitedetail'
import mybuildingdetails from '@/pages/details/mybuildingdetails'
import dresoucetails from '@/pages/details/dresoucetails'
import assetdetails from '@/pages/details/assetdetails'

Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/home',
      name: 'home',
      component: home
    },
    {
      path: '/place',
      name: 'place',
      component: place
    },
    {
      path: '/equipmentActive',
      name: 'equipmentActive',
      component: equipmentActive
    },
    {
      path: '/historicalRecord',
      name: 'historicalRecord',
      component: historicalRecord
    },
    {
      path: '/notice',
      name: 'notice',
      component: notice
    },
    {
      path: '/push',
      name: 'push',
      component: push
    },
    {
      path: '/problem',
      name: 'problem',
      component: problem
    },
    {
      path: '/telephone',
      name: 'telephone',
      component: telephone
    },
    {
      path: '/report',
      name: 'report',
      component: report
    },
    {
      path: '/attendance',
      name: 'attendance',
      component: attendance
    },
    {
      path: '/scanning',
      name: 'scanning',
      component: scanning
    },
    {
      path: '/scanning',
      name: 'scanning',
      component: scanning
    },
    {
      path: '/subordinateUnits',
      name: 'subordinateUnits',
      component: subordinateUnits
    },
    {
      path: '/rescueResources',
      name: 'rescueResources',
      component: rescueResources
    },
    {
      path: '/ownerUnit',
      name: 'ownerUnit',
      component: ownerUnit
    },
    {
      path: '/maintenanceUnit',
      name: 'maintenanceUnit',
      component: maintenanceUnit
    },
    {
      path: '/keySites',
      name: 'keySites',
      component: keySites
    },
    {
      path: '/allBuildings',
      name: 'allBuildings',
      component: allBuildings
    },
    {
      path: '/hazardSource',
      name: 'hazardSource',
      component: hazardSource
    },
    {
      path: '/addEquipment',
      name: 'addEquipment',
      component: addEquipment
    },
    {
      path: '/category',
      name: 'category',
      component: category
    },
    {
      path: '/giveAnalarm',
      name: 'giveAnalarm',
      component: giveAnalarm
    },
    {
      path: '/measure',
      name: 'measure',
      component: measure
    },
    {
      path: '/camera',
      name: 'camera',
      component: camera
    },
    {
      path: '/equipmentDetails',
      name: 'equipmentDetails',
      component: equipmentDetails
    },
    {
      path: '/choiceNew',
      name: 'choiceNew',
      component: choiceNew
    },
    {
      path: '/company',
      name: 'company',
      component: company
    },
    {
      path: '/ownerUnitDetails',
      name: 'ownerUnitDetails',
      component: ownerUnitDetails
    },
    {
      path: '/maitainordetails',
      name: 'maitainordetails',
      component: maitainordetails
    },
    {
      path: '/sitedetail',
      name: 'sitedetail',
      component: sitedetail
    },
    {
      path: '/mybuildingdetails',
      name: 'mybuildingdetails',
      component: mybuildingdetails
    },
    {
      path: '/dresoucetails',
      name: 'dresoucetails',
      component: dresoucetails
    },
    {
      path: '/assetdetails',
      name: 'assetdetails',
      component: assetdetails
    },
    {
      path: '/correcting',
      name: 'correcting',
      component: correcting
    }
  ]
})
